'use strict';
const Service = require('egg').Service;
class UserService extends Service {
    async findUserById(id) {
        const { app } = this;
        const user = await app.mysql.select('hsk_user', { where: { id } });
        return user? user[0] : null;
    }
}
module.exports = UserService;
